package dao;
import tool.RowMapper;
import tool.BaseDao;
import java.util.List;
import java.sql.SQLException;
import java.sql.ResultSet;
import entity.AdvertisetbEntity;
import dao.mapper.AdvertisetbDAOI;

/**
*@author JiangFan
*/
public class AdvertisetbDAO extends BaseDao implements AdvertisetbDAOI {

}
class AdvertisetbRowMapper implements RowMapper<AdvertisetbEntity>{
	@Override
	public AdvertisetbEntity rowmap(ResultSet set) throws  SQLException{
		return new AdvertisetbEntity(
			set.getString("advertise_id"),
			set.getString("picture"),
			set.getString("address"),
			set.getDate("start_time"),
			set.getDate("end_time")
		);
	}
}
